<style type="text/css">
	.color-000{
		color:#000;
	}
	.color-ccc{
		color:#ccc;
	}
</style>
<div class="row">
	<div class="col-lg-12">
		<h1 class="site-h1" style="background-color:#FFFFFF;">
			反馈列表<#if feedbackmanagementList??>（${feedbackmanagementList.totalElements!''}）</#if>
		</h1>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12">
				<table class="layui-table" lay-skin="line" id="example-basic">
				  <thead>
					<tr>
					  <th>姓名</th>
					  <th>手机</th>
					  <th>提交时间</th>
					  <th style="white-space:nowrap;" nowrap="nowrap">操作</th>
					</tr> 
				  </thead>
				  <tbody>
					<#if feedbackmanagementList?? && feedbackmanagementList??>
					<#list feedbackmanagementList.content as feedbackList>
					<tr <#if feedbackList.viewstate="0">class="color-000"<#elseif feedbackList.viewstate="1">class="color-ccc"</#if>>
					  <td class="add">${feedbackList.name!''}</td>
					  <td>${feedbackList.telephone!''}</td>
					  <td>${feedbackList.createtime!''}</td>
					  <td style="white-space:nowrap;" nowrap="nowrap">		
					  		<a href="/admin/feedback/edit.html?id=${feedbackList.id!''}" data-toggle="ajax"   data-href-index="/admin/feedback/index" data-width="80%" data-height="95%" data-title="编辑信息">
					  			<i class="layui-icon">&#xe642;</i>
					  			编辑
					  		</a>
					  		<a href="/admin/feedback/delete.html?id=${feedbackList.id!''}" style="margin-left:10px;" data-toggle="tip" data-title="请确认是否删除记录？">
					  			<i class="layui-icon" style="color:red;">&#x1006;</i>
					  			删除
					  		</a>
					  </td>
					</tr>
					</#list>
					</#if>
				  </tbody>
				</table>
			</div> 	   
		</div>
		<div class="row" style="padding:5px;">
			<div class="col-lg-12" id="page" style="text-align:center;"></div>
		</div>
	</div>	
</div>
<script>
layui.use(['laypage', 'layer','form','laydate'], function(){
  var laypage = layui.laypage
  ,layer = layui.layer;
  laypage({
		cont: 'page'
		,pages: <#if feedbackmanagementList??>${feedbackmanagementList.totalPages}<#else>0</#if> //总页数
		,curr:<#if feedbackmanagementList??>${feedbackmanagementList.number+1}<#else>0</#if>
		,groups: 5 //连续显示分页数
		,jump:function(data , first){
			if(!first){
				location.href = "/admin/feedback/list.html?p="+data.curr ;
			}
		}
   });
});
</script>